#pragma once

#include <GdiPlus.h>

class CInitGdiplus
{
public:
	CInitGdiplus()
	{
		Gdiplus::GdiplusStartupInput gdiplusStartupInput;
		Gdiplus::GdiplusStartup(&m_Token, &gdiplusStartupInput, NULL);
	}

	~CInitGdiplus()
	{
		Gdiplus::GdiplusShutdown(m_Token);
	}

protected:
	ULONG_PTR m_Token;
};